﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Project_mfa
{
    public partial class Test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            List<string> names = new List<string>();

            for (int i = 0; i < 10; i++)
            {
                names.Add("John Doe" + i.ToString());
            }
            GridView1.DataSource = names;

            GridView1.DataBind();

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Label1.Text = TextBox1.Text;
        }

        protected void BtnSubmit_Click(object sender, EventArgs e)
        {
            var fname = TxtFName.Text;
            var lname = TxtLName.Text;
            var state = State.SelectedValue;
            LblText.Text = fname + "  " + lname + " " + state;
        }
    }
}